/**
 * $Id: CommandReportResp.java,v 1.4 2006/07/17 06:00:32 star Exp $
 *
 * Copyright 2006 Skyinfo, Inc. All Rights Reserved.
 */
package com.haoxi.gateway.runner.smscommand;

/**
 * 用于回复命令的响应
 * 
 * Revision History
 *
 * 2006-5-25,star.Zhao,created it
 */
public class CommandReportResp extends BaseCommandObj {
    private String gatewayCode;
    private String connName;
    private String status;
    
    private String msgID;
    
    private byte[] msgId_bytes;
    
    /**
     * @return Returns the msgId_bytes.
     */
    public byte[] getMsgId_bytes() {
        return msgId_bytes;
    }

    /**
     * @param msgId_bytes The msgId_bytes to set.
     */
    public void setMsgId_bytes(byte[] msgId_bytes) {
        this.msgId_bytes = msgId_bytes;
    }

    public CommandReportResp(String msgID){
        this.msgID = msgID;
    }
        
    public String getStatus () {
        return status;
    }

    public void setStatus ( String status ) {
        this.status = status;
    }

    public String getMsgID() {
        return msgID;
    }

    public void setMsgID(String msgID) {
        this.msgID = msgID;
    }

    /**
     * @return Returns the connName.
     */
    public String getConnName() {
        return connName;
    }

    /**
     * @param connName The connName to set.
     */
    public void setConnName(String connName) {
        this.connName = connName;
    }

    /**
     * @return Returns the gatewayCode.
     */
    public String getGatewayCode() {
        return gatewayCode;
    }

    /**
     * @param gatewayCode The gatewayCode to set.
     */
    public void setGatewayCode(String gatewayCode) {
        this.gatewayCode = gatewayCode;
    }
    /*
     * (non-Javadoc)
     * 
     * @see com.haoxi.gateway.runner.smscommand.BaseCommandObj#toString()
     */
    public String toString() {
        StringBuffer buffer = new StringBuffer("CommandReportResp : sequence [")
                .append(this.sequence).append("], status [").append(
                        this.status).append("],  msgID [").append(
                        this.msgID).append("],  connName [").append(
                                this.connName).append("]");
        return buffer.toString();
    }

}
